package com.ruoyi.project.web.tRoomBill.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.web.tRoomBill.mapper.TRoomBillMapper;
import com.ruoyi.project.web.tRoomBill.domain.TRoomBill;
import com.ruoyi.project.web.tRoomBill.service.ITRoomBillService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 房间流水 服务层实现
 * 
 * @author ruoyi
 * @date 2021-07-06
 */
@Service
public class TRoomBillServiceImpl implements ITRoomBillService 
{
	@Autowired
	private TRoomBillMapper tRoomBillMapper;

	/**
     * 查询房间流水信息
     * 
     * @param id 房间流水ID
     * @return 房间流水信息
     */
    @Override
	public TRoomBill selectTRoomBillById(String id)
	{
	    return tRoomBillMapper.selectTRoomBillById(id);
	}
	
	/**
     * 查询房间流水列表
     * 
     * @param tRoomBill 房间流水信息
     * @return 房间流水集合
     */
	@Override
	public List<TRoomBill> selectTRoomBillList(TRoomBill tRoomBill)
	{
	    return tRoomBillMapper.selectTRoomBillList(tRoomBill);
	}
	
    /**
     * 新增房间流水
     * 
     * @param tRoomBill 房间流水信息
     * @return 结果
     */
	@Override
	public int insertTRoomBill(TRoomBill tRoomBill)
	{
	    return tRoomBillMapper.insertTRoomBill(tRoomBill);
	}
	
	/**
     * 修改房间流水
     * 
     * @param tRoomBill 房间流水信息
     * @return 结果
     */
	@Override
	public int updateTRoomBill(TRoomBill tRoomBill)
	{
	    return tRoomBillMapper.updateTRoomBill(tRoomBill);
	}

	/**
     * 删除房间流水对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTRoomBillByIds(String ids)
	{
		return tRoomBillMapper.deleteTRoomBillByIds(Convert.toStrArray(ids));
	}
	
}
